﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using School.Teaching;
namespace School.Pages.Admission.Reports
{
    public partial class ShowStudentExamSchedule : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var a = Request.QueryString["Exam_Id"];
            if (Session["studentId"] != null)
            {
                ddlExam.DataSource = OfflineExam.Get_OfflineExamByStudentID(long.Parse(Session["studentId"].ToString()));
                ddlExam.DataBind();
                ddlExam.Items.Insert(0, new ListItem() { Value = "0", Text = "اختر الامتحان" });
            }
        }
        protected void ddlExam_SelectedIndexChanged(object sender, EventArgs e)
        {
            Response.Redirect(string.Format("/Admission/Reports/ShowStudentExamSchedule.aspx?Exam_Id={0}",ddlExam.SelectedValue));
        }
        protected void SqlDataSource1_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
        {
        }
    }
}